#include "HitPointEvent.h"

unsigned int HitPointEvent::type = 0;

HitPointEvent::HitPointEvent(): set(false)
{
	InitializeType(&type);
}

HitPointEvent::HitPointEvent(const HitPointEvent& rhs): hitX(rhs.hitX), hitY(rhs.hitY), set(rhs.set)
{
}

HitPointEvent::~HitPointEvent()
{
}

GameEvent* HitPointEvent::Clone() const
{
	return new HitPointEvent(*this);
}

void HitPointEvent::Copy(GameEvent* gameEvent)
{
	if (Equals(gameEvent))
	{
		HitPointEvent* hitPointEvent = static_cast<HitPointEvent*>(gameEvent);

		hitX = hitPointEvent->hitX;
		hitY = hitPointEvent->hitY;
		set = hitPointEvent->set;
	}
}

unsigned int HitPointEvent::Type() const
{
	return type;
}

void HitPointEvent::SetHitPoint(unsigned int x, unsigned int y)
{
	set = true;
	hitX = x;
	hitY = y;
}

unsigned int HitPointEvent::X()
{
	return hitX;
}

unsigned int HitPointEvent::Y()
{
	return hitY;
}

bool HitPointEvent::IsSet() const
{
	return set;
}




